function toTwoLineString(s) {
    return s.replace(", ", "<br/>");
}

function toOneLineString(s) {
    return s.replace("<br/>", ", ");
}

function formatDistance(s) {
    if(s > 1000) {
        var temp = s / 1000;
        return temp.toFixed(2) + " km";
    } else {
        return s.toFixed(1) + " m";
    }
}

function formatAngle(s) {
    return s.toFixed(2) + "&deg;";
}

